home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig22_19.jar
/
Ch22
/
Fig22_19
/
Fig22_19.c
Wrap
C/C++ Source or Header
|
1995-07-20
|
335b
|
16 lines
/* Reading floating-point numbers */
#include <stdio.h>
main()
{
float a, b, c;
printf("Enter three floating-point numbers: \n");
scanf("%e%f%g", &a, &b, &c);
printf("Here are the numbers entered in plain\n");
printf("floating-point notation:\n");
printf("%f\n%f\n%f\n", a, b, c);
return 0;
}